﻿using System;
using System.ServiceModel.Configuration;

namespace Tiscs.Practices.Web.Services.Client
{
    /// <summary>
    /// Cookie管理器行为扩展。
    /// </summary>
    public class CookieManagerBehaviorExtension : BehaviorExtensionElement
    {
        /// <summary>
        /// 获取行为类型。
        /// </summary>
        public override Type BehaviorType
        {
            get { return typeof(CookieManagerEndpointBehavior); }
        }

        /// <summary>
        /// 创建行为实例。
        /// </summary>
        /// <returns></returns>
        protected override object CreateBehavior()
        {
            return new CookieManagerEndpointBehavior();
        }
    }
}
